package com.lapian.designmode.flyweight.test.test_f2;

import com.lapian.designmode.flyweight.my.User;

/**
 * 创建日期：2022/6/8 0008 17:59
 *
 * @author tony.sun
 * 类说明：
 */
public class ConcreteRoleF2 extends AbstractRoleF2{
    String type="";

    public ConcreteRoleF2(String type) {
        this.type=type;
    }

    @Override
    public void use(User user) {
        System.out.println(user.getName()+type);
    }
}
